import request from '@/utils/request'

// 查询评估列表
export function listAssessment(query) {
    return request({
        url: '/evaluate/assessment/list',
        method: 'get',
        params: query
    })
}

// 查询评估所有列表
export function listAllAssessment(query) {
    return request({
        url: '/evaluate/assessment/listAll',
        method: 'get',
        params: query
    })
}

// 查询评估详细
export function getAssessment(id) {
    return request({
        url: '/evaluate/assessment/' + id,
        method: 'get'
    })
}

// 新增评估
export function addAssessment(data) {
    return request({
        url: '/evaluate/assessment',
        method: 'post',
        data: data
    })
}

// 修改评估
export function updateAssessment(data) {
    return request({
        url: '/evaluate/assessment',
        method: 'put',
        data: data
    })
}

// 删除评估
export function delAssessment(id) {
    return request({
        url: '/evaluate/assessment/' + id,
        method: 'delete'
    })
}

// 导出能力等级评估报告
export function exportToWord(data) {
    return request({
        url: '/evaluate/assessment/exportToWord',
        method: 'post',
        data: data
    })
}